<?php

use App\Http\Livewire\Domain as DomainAlias;
use App\Http\Livewire\DomainList;
use App\Http\Livewire\TeamListItem as TeamAlias;
use App\Http\Livewire\TeamList as TeamListAlias;
use App\Http\Livewire\TeamView as TeamViewAlias;
use App\Http\Livewire\UserProfile;
use App\Http\Livewire\UserRegistration;
use App\Http\Livewire\WelcomePage;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', WelcomePage::class)->name('welcome-page');

Route::get('/restore-password', WelcomePage::class)->name('restore-password');

Route::get('/user-registration', UserRegistration::class)->name('user-registration');

Route::get('/user-profile/{userName}', UserProfile::class)->name('user-profile');

Route::get('/domain/{id}', DomainAlias::class)->name('domain');

Route::get('/domain-list', DomainList::class)->name('domain-list');

Route::get('/team-view/{id}', TeamViewAlias::class)->name('team-view');

Route::get('/team-list', TeamListAlias::class)->name('team-list');

Route::get('/logout', function () {
    Auth::logout();
    return redirect()->route('welcome-page');
})->name('logout');
